#include"Shm.hpp"
#include"Fifo.hpp"

int main()
{
    shm s(USER);
    FileOper o(".","hhh");
    o.OpenForWrite();
    char* s1 = (char *)s.add();
    int index = 0;
    for(char i = 'A'; i <= 'Z';i++)
    {
        sleep(1);
        s1[index++] = i;
        sleep(1);
        s1[index++] = i;
        o.Write();
    }
    o.Close();
    return 0;
}